package com.william.jdbcplus.generator.entity;

import com.william.jdbcplus.common.annotation.Table;
import com.william.jdbcplus.common.annotation.TableColumn;
import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 在线excel设计器
 *
 * @author niliwei
 * @date 2020-11-23 10:10:59
 */
@Data
@NoArgsConstructor
@Table(value = "excel_report", remarks = "在线excel设计器")
public class ExcelReport implements Entity {

    @TableId(value = "id", remarks = "主键", type = IdType.ATOMIC, size = 32)
    private String id;

    @TableColumn(value = "code", remarks = "编码")
    private String code;

    @TableColumn(value = "name", remarks = "名称")
    private String name;

    @TableColumn(value = "note", remarks = "说明", size = 255)
    private String note;

    @TableColumn(value = "status", remarks = "状态", size = 10)
    private String status;

    @TableColumn(value = "type", remarks = "类型", size = 10)
    private String type;

    @TableColumn(value = "json_str", remarks = "json字符串", size = 65535)
    private String jsonStr;

    @TableColumn(value = "api_url", remarks = "请求地址", size = 255)
    private String apiUrl;

    @TableColumn(value = "thumb", remarks = "缩略图", size = 65535)
    private String thumb;

    @TableColumn(value = "create_by", remarks = "创建人")
    private String createBy;

    @TableColumn(value = "create_time", remarks = "创建时间")
    private Date createTime;

    @TableColumn(value = "update_by", remarks = "修改人")
    private String updateBy;

    @TableColumn(value = "update_time", remarks = "修改时间")
    private Date updateTime;

    @TableColumn(value = "del_flag", remarks = "删除标识0-正常,1-已删除", size = 3)
    private Integer delFlag;

    @TableColumn(value = "api_method", remarks = "请求方法0-get,1-post", size = 255)
    private String apiMethod;

    @TableColumn(value = "api_code", remarks = "请求编码", size = 255)
    private String apiCode;

    @TableColumn(value = "template", remarks = "是否是模板 0-是,1-不是", size = 3)
    private Integer template;

    @TableColumn(value = "view_count", remarks = "浏览次数", size = 19)
    private Long viewCount;

}